﻿using MainInterface;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using System.Text;
using System.Windows.Forms.Design;

namespace MainFrmTool.CustomTab
{
    [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")]
    public class CustomEventTab : PropertyTab
    {
        public CustomEventTab()
        {

        }

        public override System.ComponentModel.PropertyDescriptorCollection GetProperties(object component, System.Attribute[] attributes)
        {
            if (component is ISelectObj)
            {
                ISelectObj seobj = (ISelectObj)component;
                return seobj.GetEventProperties(attributes);
            }
            return null;
        }

        public override System.ComponentModel.PropertyDescriptorCollection GetProperties(object component)
        {
            if (component is ISelectObj)
            {
                ISelectObj seobj = (ISelectObj)component;
                return seobj.GetEventProperties(null);
            }
            return null;
        }

  
        public override string TabName
        {
            get
            {
                return "事件";
            }
        }

        public override System.Drawing.Bitmap Bitmap
        {
            get
            {
                return MainFrmTool.Properties.Resources.MyEvent;
            }
        }
 
    }
}
